function activeMenu(iframeId, uri) {

	var iframeObj = document.getElementById(iframeId);
	if (iframeObj == null) {
		iframeObj = top.document.getElementById(iframeId);
	}
	iframeObj.src = uri;
}

function clickHomePage() {
	fnc_showElement('bodyBox');
	fnc_hiddenElement('body_div');
}

function clickOtherMenu() {
	fnc_hiddenElement('bodyBox');
	fnc_showElement('body_div');
}

function toogleElement(id) {
	var el = document.getElementById(id);
	el.style.display = el.style.display == "none" ? "block" : "none";
}

function fnc_hiddenElement(id) {
	var el = document.getElementById(id);
	el.style.display = "none"
}

function fnc_showElement(id) {
	var el = document.getElementById(id);
	el.style.display = "block";
}

function clickTopMenu(leftUrl, rightUrl) {
	if (leftUrl != null) {
		activeMenu('leftIframe', leftUrl);
	}
	if (rightUrl != null) {
		activeMenu('rightIframe', rightUrl);
	}

	clickOtherMenu();
}
function clickTopMenu2(rightUrl) {
	if (rightUrl != null) {
		activeMenu('rightIframe', rightUrl);
	}

	clickOtherMenu();
}
